import React from "react";

interface TitleProps {
  collapsed: boolean | undefined,
  title: string,
  titleSize: number
}

const Title: React.FC<TitleProps> = ({collapsed, title, titleSize}) => {


  return (
    <span style={{fontSize: titleSize, color: '#000', whiteSpace: 'pre', margin: '0 3px'}}>
      {collapsed ? '' : title}
    </span>
  )
}

export default Title